package com.codingman.springdemo2;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo5 {

	public static void main(String[] args) {
		BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		Company company = (Company) factory.getBean("bean54");
		company.show();
		
		Company company2 = (Company) factory.getBean("bean55");
		company2.show();
	}

}
